﻿using NUnit.Framework;

namespace WordStudy20250123.T004
{
    [TestFixture]
    public class NumberTest01
    {

        [Test]
        public void Test01()
        {
            double[] testNumbers = { 123456.789, 12345.678, 1234.5678, 123.456, 12.3456, 1.23456, 0.123456, 
                0, -123456.789, -12345.678, -1234.5678, -123.456, -12.3456, -1.23456, -0.123456 };

            foreach (var number in testNumbers)
            {
                string formattedNumber = NumberFormatterHelper.FormatNumber(number, 4);
                Console.WriteLine($"Original: {number}, Formatted: {formattedNumber}");
            }
        }
    }
}
